package com.kzw.oa.byxt.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.kzw.oa.model.system.AppUser;
import com.kzw.oa.model.system.Dictionary;

/**
 * 毕业设计选题
 * */
public class Subject {

	private Long oid;
	// 题目名称
	private String name;
	// 指导教师
	private AppUser teacher;
	// 题目来源
	private Dictionary fromType;
	// 题目类型
	private Dictionary type;
	// 对学生要求
	private String yaoqiu;
	// 起止周数
	private String weekLen;
	// 毕业实习时间及地址
	private String shixiInfo;
	// 主要工作内容
	private String sumary;

	// 记录审批信息
	// 题目状态：（1:草稿，2:待审核，3:审核不通过，4:审核通过，5:预选成功）
	private Integer status;
	// 审题人
	private CheckMember checkMember;

	// 题目预选信息
	private Set<YuXuan> yuXuans = new HashSet<>();
	// 最终确定的学生
	private AppUser student;
	// 是否确定
	private Integer finish;
	
	// 被预选次数
	private int xscnt = 0; 
	
	// 录入时间
	private Date recDate = new Date();
	// 录入者
	private AppUser recUser;
	
	/**
	 * 导出excel的javaRenderer
	 * */
	public String showStatus() {
		return 	status==1 ? "草稿":
				status==2 ? "待审核":
				status==3 ? "审核不通过":
				status==4 ? "审核通过":
				status==5 ? "正式分布": "";
	}
	

	public Long getOid() {
		return oid;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public AppUser getTeacher() {
		return teacher;
	}

	public void setTeacher(AppUser teacher) {
		this.teacher = teacher;
	}

	public Dictionary getFromType() {
		return fromType;
	}

	public void setFromType(Dictionary fromType) {
		this.fromType = fromType;
	}

	public Dictionary getType() {
		return type;
	}

	public void setType(Dictionary type) {
		this.type = type;
	}

	public String getYaoqiu() {
		return yaoqiu;
	}

	public void setYaoqiu(String yaoqiu) {
		this.yaoqiu = yaoqiu;
	}

	public String getWeekLen() {
		return weekLen;
	}

	public void setWeekLen(String weekLen) {
		this.weekLen = weekLen;
	}

	public String getShixiInfo() {
		return shixiInfo;
	}

	public void setShixiInfo(String shixiInfo) {
		this.shixiInfo = shixiInfo;
	}

	public String getSumary() {
		return sumary;
	}

	public void setSumary(String sumary) {
		this.sumary = sumary;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Set<YuXuan> getYuXuans() {
		return yuXuans;
	}

	public void setYuXuans(Set<YuXuan> yuXuans) {
		this.yuXuans = yuXuans;
	}

	public AppUser getStudent() {
		return student;
	}

	public void setStudent(AppUser student) {
		this.student = student;
	}

	public Integer getFinish() {
		return finish;
	}

	public void setFinish(Integer finish) {
		this.finish = finish;
	}

	public CheckMember getCheckMember() {
		return checkMember;
	}

	public void setCheckMember(CheckMember checkMember) {
		this.checkMember = checkMember;
	}

	public int getXscnt() {
		return xscnt;
	}

	public void setXscnt(int xscnt) {
		this.xscnt = xscnt;
	}

	public Date getRecDate() {
		return recDate;
	}

	public void setRecDate(Date recDate) {
		this.recDate = recDate;
	}

	public AppUser getRecUser() {
		return recUser;
	}

	public void setRecUser(AppUser recUser) {
		this.recUser = recUser;
	}

}
